package priv.mill.server.impl;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import priv.mill.dao.mapper.CollectMapper;
import priv.mill.entry.Collect;
import priv.mill.server.CollectService;

@Component
public class CollectServiceImpl implements CollectService{

	private static final Logger logger = Logger
			.getLogger(CollectServiceImpl.class);

	@Autowired
	private CollectMapper collectMapper;
	
	@Override
	public Collect getCollectById(Integer collectId) {
		return collectMapper.getCollectById(collectId);
	}

	@Override
	public Collect getCollectByEntry(Collect collect) {
		return collectMapper.getCollectByEntry(collect);
	}

	@Override
	public List<Collect> getCollectsByPage(Collect collect) {
		return collectMapper.getCollectsByPage(collect);
	}

	@Override
	public int updateCollect(Collect collect) {
		return collectMapper.updateCollect(collect);
	}

	@Override
	public int insertCollect(Collect collect) {
		return collectMapper.insertCollect(collect);
	}

	@Override
	public int deleteCollect(Integer collectId) {
		return collectMapper.deleteCollect(collectId);
	}
}
